home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Fixation 1.3
/
fastmap.h
< prev
next >
Wrap
Text File
|
1995-10-14
|
674b
|
33 lines
// fastmap.h
#include <QDOffscreen.h>
/*
** Definitions
*/
typedef struct {
short frames;
short masked;
} frameData;
class Fastmap {
public:
short width, height;
Boolean masked;
long *bits;
// constructor/destructor
Fastmap( GWorldPtr gw, Boolean isMasked, short index = 0, short hsize = 0, short vsize = 0 );
~Fastmap( void );
// interface
void Draw(GWorldPtr destworld, Rect *r);
void DrawMask(GWorldPtr destworld, Rect *r);
void Draw8by8(GWorldPtr destworld, Rect *r);
private:
void Draw8by8Mask(GWorldPtr destworld, Rect *r);
};
void LoadFastmaps(short baseID, short num, frameData *frameCounts, Rect *blockrect, Fastmap **bpix, short maxFrames);